package org.dromara.germbank.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import lombok.RequiredArgsConstructor;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.web.core.BaseController;
import org.dromara.germbank.domain.bo.BusChannelManagementBo;
import org.dromara.germbank.domain.vo.BusChannelManagementVo;
import org.dromara.germbank.service.BusChannelManagementService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 渠道管理控制类
 *
 * @author congxing
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/channel")
public class BusChannelManagementController extends BaseController {

    private final BusChannelManagementService busChannelManagementService;

    /**
     * 查询渠道管理列表
     */
    @SaCheckPermission("")
    @GetMapping("/list")
    public TableDataInfo<BusChannelManagementVo> list(BusChannelManagementBo bo, PageQuery pageQuery) {
        return busChannelManagementService.queryPageList(bo,pageQuery);
    }


}
